﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace WebApiTest.Models
{
    [Table("TestUser")]
    public class TestUser
    {
        [Key,DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        [Column(TypeName = "varchar"), MaxLength(50)]
        public string Name { get; set; }
        [Column(TypeName = "char"), MaxLength(11)]
        public string TelPhone { get; set; }
        [Column(TypeName = "int")]
        public int? Age { set; get; }
        [Column(TypeName = "datetime")]
        public DateTime CreateData { get; set; }
        [Column(TypeName = "int")]
        public int Extend1 { get; set; }
    }
}